/*
 * Created on Feb 9, 2009
 *
 * TODO
 */
package jacky.lanlan.song.extension.vraptor2;

import org.vraptor.remote.json.JSONSerializer;

/**
 * 默认 Json 编码器，使用 {@code org.vraptor.remote.json.JSONSerializer}。
 * 
 * @author Jacky.Song
 */
public class DefaultJsonEncoder implements JsonEncoder {
	
	private static final JSONSerializer ENCODER = new JSONSerializer();
	
	// private static final Gson ENCODER = new Gson();
	@Override
	public String encode(Object value) {
		return ENCODER.serialize(value).toString();
	}
}
